import request from "@/utils/request";

// 查询列表
export function listInvitation(query) {
  return request({
    url: "/api/invitation/list",
    method: "get",
    params: query,
  });
}

// 新增
export function addInvitation(data) {
  return request({
    url: "/api/invitation/add",
    method: "post",
    data: data,
  });
}

// 编辑
export function updateInvitation(data) {
  return request({
    url: "/api/invitation/update",
    method: "post",
    data: data,
  });
}

// 删除
export function deleteInvitation(data) {
  return request({
    url: "/api/invitation/del",
    method: "post",
    data: data,
  });
}

// 审批
export function approveInvitation(data) {
  return request({
    url: "/api/invitation/approve",
    method: "post",
    data: data,
  });
}
